package cn.wolfcode.designpattern.strategy;

/**
 * @author Leon
 * @date 2021/2/28
 */
public class NullValid implements ParamValidateStrategy {

    @Override
    public String validate(Object param) {
        System.out.println("是否为空："+param);
        return param != null ? null : "参数不能为空！";
    }
}
